<extend name="public@base"/>
block(name='main')
    .wrap.js-check-wrap
        ul.nav.nav-tabs
            li.nav-item: a.nav-link(href="{:url('nav/index')}") {:lang('ADMIN_NAV_INDEX')}
            li.nav-item: a.nav-link.active(href="{:url('nav/add')}") {:lang('ADMIN_NAV_ADD')}
        form.form-horizontal.js-ajax-form.margin-top-20(method='post', action="{:url('nav/addPost')}")
            .form-group.form-row
                label.col-2.col-form-label.text-right
                    span.form-required
                    | 名称:
                .col.col-lg-6
                    input.form-control(type='text', name='name', value='')
            .form-group.form-row
                label.col-2.col-form-label.text-right 备注:
                .col.col-lg-6
                    textarea.form-control(name='remark', rows='5', cols='57')
            .form-group.form-row
                label.col-2.col-form-label.text-right 主菜单:
                .col.col-lg-6
                    .checkbox
                        label
                            input(type='checkbox', name='is_main', value='1')
            .col-auto.offset-lg-2.btn-group
                button.btn.btn-primary.js-ajax-submit(type='submit') {:lang("SAVE")}
                a.btn.btn-secondary(href="{:url('Nav/index')}") 返回
